/*******************************************************************************
 * Copyright (c) 2005, 2014 springside.github.io
 * <p/>
 * Licensed under the Apache License, Version 2.0 (the "License");
 *******************************************************************************/
package org.quickstart.service.account;

import java.util.List;

import org.quickstart.entity.User;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

/**
 * 用户管理类.
 *
 * @author calvin
 */
// Spring Service Bean的标识.
public interface AccountService {

    public static final String HASH_ALGORITHM = "SHA-1";
    public static final int HASH_INTERATIONS = 1024;

    public List<User> getAllUser();
    public User getUser(Long id) ;

    public User findUserByLoginName(String loginName);

    public void registerUser(User user);

    public void updateUser(User user) ;

    public void deleteUser(Long id) ;

}
